<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>#{forum}</title>
    </h:head>
    <h:body>
        <h1>Thema: #{forum.themaAktiv}</h1>
        <h:outputText value="Ihr Beitrag:" />
        
        <h:form>
            <h:inputTextarea cols="40" rows="10" value="#{nachricht.nachricht}" /><br/>
            <h:commandButton value="Ergänzen" action="#{forum.addNachrichtToThema(nachricht)}" />
    	</h:form>
        
        <h1>Nachrichten:</h1>
        <h:dataTable value="#{forum.themaAktiv.nachrichten}" var="item" border="0" >
            <h:column>
                <h:outputText value="#{item}" />
            </h:column>
        </h:dataTable>
        
        
        <br/>
        <h:link value="zur Startseite" outcome="index" >
        </h:link>
    </h:body>
</html>

